import request from '@/utils/request'

// 查询维修列表
export function serviceManagementList(query) {
  return request({
    url: '/repair/getRepairList',
    method: 'get',
    params: query
  })
}

//新增维修
export function addServiceManagement(data) {
  return request({
    url: '/repair/insertRepair',
    method: 'post',
    data: data
  })
}

//修改维修
export function updateServiceManagement(data) {
  return request({
    url: '/repair/updateRepair',
    method: 'post',
    data: data
  })
}


//删除维修
export function deleteServiceManagement(data) {
  return request({
    url: '/repair/deleteRepair',
    method: 'post',
    data: data
  })
}

//查询维修图片
export function getMaintenanceImg(query) {
  return request({
    url: '/img/getMaintenance',
    method: 'get',
    params: query
  })
}

///新增维修图片
export function addMaintenanceImg(data) {
  return request({
    url: '/img/addMaintenance',
    method: 'post',
    data: data
  })
}
